package top.mccat.common.core.domain.bk;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import top.mccat.common.annotation.Excel;
import top.mccat.common.core.domain.BaseEntity;

/**
 * arrears对象 bk_arrears
 * 
 * @author ruoyi
 * @date 2023-01-23
 */
public class BkArrears extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记账表主键 */
    private Integer id;

    /** 记账时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记账时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date arrearsDate;

    /** 欠账时间，这里只保存钱款 */
    @Excel(name = "欠账时间，这里只保存钱款")
    private Integer arrearsAmount;

    /** 偿还状态，默认0为未偿还，1未已偿还 */
    @Excel(name = "偿还状态，默认0为未偿还，1未已偿还")
    private Integer arrearsStatus;

    /** 欠款状态，默认0为客户欠款，1为欠款给客户 */
    @Excel(name = "欠款状态，默认0为客户欠款，1为欠款给客户", dictType = "")
    private Integer arrearsType;

    /** 用于链接客户 */
    @Excel(name = "用于链接客户")
    private Integer customerId;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setArrearsDate(Date arrearsDate) 
    {
        this.arrearsDate = arrearsDate;
    }

    public Date getArrearsDate() 
    {
        return arrearsDate;
    }
    public void setArrearsAmount(Integer arrearsAmount) 
    {
        this.arrearsAmount = arrearsAmount;
    }

    public Integer getArrearsAmount() 
    {
        return arrearsAmount;
    }
    public void setArrearsStatus(Integer arrearsStatus) 
    {
        this.arrearsStatus = arrearsStatus;
    }

    public Integer getArrearsStatus() 
    {
        return arrearsStatus;
    }
    public void setArrearsType(Integer arrearsType) 
    {
        this.arrearsType = arrearsType;
    }

    public Integer getArrearsType() 
    {
        return arrearsType;
    }
    public void setCustomerId(Integer customerId) 
    {
        this.customerId = customerId;
    }

    public Integer getCustomerId() 
    {
        return customerId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("arrearsDate", getArrearsDate())
            .append("arrearsAmount", getArrearsAmount())
            .append("arrearsStatus", getArrearsStatus())
            .append("arrearsType", getArrearsType())
            .append("customerId", getCustomerId())
            .toString();
    }
}
